export function generateOrderNumber(prefix = '') {
  const date = new Date()
  const year = date.getFullYear()
  const month = (date.getMonth() + 1).toString().padStart(2, '0')
  const day = date.getDate().toString().padStart(2, '0')
  const randomNumber = Math.floor(Math.random() * 1000) // 生成4位随机数
  return `${prefix}${year}${month}${day}${randomNumber}`
}

